class customizedErrorCode {
  constructor(errorCode, errorMessage) {
    this._errorCode = errorCode;
    this._errorMessage = errorMessage;
  }

  get errorCode() {
    return this._errorCode;
  }

  get errorMessage() {
    return this._errorMessage;
  }
}

export const INPUT_BLANK = new customizedErrorCode(
  1000,
  "字段未填写，请重新填写后再次提交。"
);
export const INPUT_NOT_MATCHED = new customizedErrorCode(
  1001,
  "字段填写错误，请重新填写后再次提交。"
);

export const INPUT_TOO_LONG = new customizedErrorCode(
  1002,
  "填写字数过长，请简洁表达后再次提交。"
);

export const IS_5XX_ERROR = new customizedErrorCode(
  1003,
  "啊哦，咱这边出现了一些小问题。请先加入交流群联系负责人通过其他渠道报名。"
);

export const NETWORK_SLOW = new customizedErrorCode(
  1004,
  "网络连接有些慢哦~可以等一会儿再提交哈。"
);

export const SUBMIT_FAIL = new customizedErrorCode(
  1005,
  "报名失败。请先加入交流群联系负责人通过其他渠道报名。"
);

export const CONNECTION_FAIL = new customizedErrorCode(
  1006,
  "报名处于未开始状态，如有问题请联系我们。"
);
